﻿<Window x:Class="EPE.WPF.HouseProjectAddForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="添加住宅项目信息" Height="300" Width="600" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Grid>
        <GroupBox Header="项目信息" Grid.Row="1" Style="{StaticResource GroupBoxStyle}" Margin="5">
            <Grid Style="{StaticResource BorderGridStyle}">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="80"></ColumnDefinition>
                    <ColumnDefinition Width="150"></ColumnDefinition>
                    <ColumnDefinition Width="120" />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>
                    <RowDefinition Height="30"></RowDefinition>

                    <RowDefinition Height="*"></RowDefinition>
                </Grid.RowDefinitions>
                <Label Content="项目名称" Grid.Row="0" Grid.Column="0" VerticalAlignment="Top"/>
                <TextBox Name="txtProjectName" Grid.Row="0" Grid.Column="1"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <Label Content="项目地址" Grid.Row="0" Grid.Column="2" VerticalAlignment="Top" />
                <TextBox  Grid.Row="0" Grid.Column="3"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <Label Content="开发商" Grid.Row="1" Grid.Column="0"  VerticalAlignment="Top"/>
                <TextBox  Grid.Row="1" Grid.Column="1"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <Label Content="开工日期" Grid.Row="1" Grid.Column="2" VerticalAlignment="Top" />
                <DatePicker Grid.Row="1" Grid.Column="3"  VerticalAlignment="Center" />
                <Label Content="竣工日期"  Grid.Row="2" Grid.Column="0"  VerticalAlignment="Top"/>
                <DatePicker Grid.Row="2" Grid.Column="1"  VerticalAlignment="Center" />
                <Label Content="总建设用地面积" Grid.Row="2" Grid.Column="2" VerticalAlignment="Top"/>
                <TextBox  Grid.Row="2" Grid.Column="3"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <Label Content="建筑占地面积"  Grid.Row="3" Grid.Column="0" VerticalAlignment="Top"/>
                <TextBox  Grid.Row="3" Grid.Column="1"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <Label Content="项目总建筑面积"  Grid.Row="3" Grid.Column="2" VerticalAlignment="Top"/>
                <TextBox  Grid.Row="3" Grid.Column="3"  VerticalAlignment="Center" Style="{StaticResource TextBoxStyle}" />
                <StackPanel  Grid.Row="7" Grid.Column="1" Grid.ColumnSpan="2" Orientation="Horizontal" >
                    <Button Name="btnSave"  Style="{StaticResource ButtonStyle}" Click="btnSave_Click">
                        <StackPanel Orientation="Horizontal" >
                            <Image Source="/resources/image/close05.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                            <Label Content="保存" HorizontalAlignment="Center"  Style="{StaticResource ButtonLabelStyle}"></Label>
                        </StackPanel>
                    </Button>
                    <Button Name="btnClose"   Style="{StaticResource ButtonStyle}" Click="btnClose_Click">
                        <StackPanel Orientation="Horizontal" >
                            <Image Source="/resources/image/close07.png" Stretch="Fill" Style="{StaticResource ButtonImageStyle}"></Image>
                            <Label Content="取消"  HorizontalAlignment="Center"  Style="{StaticResource ButtonLabelStyle}"></Label>
                        </StackPanel>
                    </Button>
                </StackPanel>
            </Grid>
        </GroupBox>
    </Grid>
</Window>
